/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import java.util.List;
import myClass.Post;
import pojo.User;

/**
 *
 * @author 4pril
 */
public class PostDAO extends ObjectDAO{
    
    public static List<Post> getListPost(User u_id){
        String hql = "from MyObject p where p.onUser = " + u_id + " and p.ObjType.ObjName = 'post'";
        return (List<Post>) (List<?>) getList(hql);
    }
    
}
